{*******************************************************************************
* The contents of this file are used with permission, subject to the Mozilla   *
* Public License Version 1.1 (the "License"); you may not use this file except *
* in compliance with the License. You may obtain a copy of the License at      *
* http://www.mozilla.org/MPL/                                                  *
*                                                                              *
* Software distributed under the License is distributed on an "AS IS" basis,   *
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for *
* the specific language governing rights and limitations under the License.    *
*                                                                              *
* The Original Code is distributed as part of the "mediate" product and is     *
* Copyright (C) @home media limited. All Rights Reserved.                      *
*                                                                              *
* Email: support@athomemedia.co.uk                                             *
* Web:   http://www.athomemedia.co.uk                                          *
*******************************************************************************}

unit AHMConsts;

interface

const
  // Application folder paths
  CONFIG_FOLDER = 'conf';
  PLUGIN_FOLDER = 'plugins';
  LICENSE_FOLDER = 'license';
  THEMES_FOLDER = 'themes';
  RESOURCE_FOLDER = 'resources';
  LOG_FOLDER = 'logs';
  BINARY_FOLDER = 'bin';
  THUMBS_FOLDER = 'thumbnails';

  // File extensions
  EXT_IMAGES: array[0..6] of String = ('.JPG','.JPEG','.PNG','.GIF','.BMP', '.TIF', '.TIFF');
  EXT_THEME = '.XML';
  EXT_AUDIO = '.WAV';
  EXT_THUMB = '.THUMB';
  EXT_INFO: array[0..1] of String = ('.TXT', '.NFO');
  EXT_PLUGIN = '.XML';
  EXT_NATIVE = '.DLL';
  EXT_THEMEARC = '.mediateTheme';

  // File filters (for open/save dialogs)
  FILTER_ALLFILES = 'All Files (*.*)|*.*';
  FILTER_IMAGES = 'Image Files|*.JPG;*.JPEG;*.PNG;*.GIF;*.BMP;*.TIF;*.TIFF';
  FILTER_SOUNDS = 'Sound Files (*.wav)|*.WAV';
  FILTER_NATIVE = 'Native Plugins (*.dll)|*.DLL';
  FILTER_EXTERNAL = 'External Applications (*.exe)|*.EXE';
  FILTER_THEMEARC = 'Theme Archives (*.mediateTheme)|*.mediateTheme';

  // Supported extensions for parsing tags
  EXT_MP3 = '.MP3';
  EXT_M4A = '.M4A';
  EXT_WMA = '.WMA';
  EXT_AVI = '.AVI';
  EXT_MPG = '.MPG';
  EXT_MPEG = '.MPEG';
  EXT_WMV = '.WMV';

  // DVD File/Path names
  PATH_DVD = 'VIDEO_TS';
  FILE_DVD = 'VIDEO_TS.IFO';

  // Command line switches
  SWITCH_CONFIGURE = 'configure';
  SWITCH_SHUTDOWN = 'shutdown';
  SWITCH_REGISTER = 'register';

implementation

end.
